home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-02 / note20.zip / NOTE.DOC < prev    next >
Text File  |  1990-03-10  |  18KB  |  375 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.                                  Note 2.0 
  9.                   Copyright 1988 - 90 Stephen C. Edwards 
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.     This software is copyrighted. See  the license agreement at the  end of 
  17. this file for information on rights to use and copy this software. 
  18.  
  19.     Note is an easy to use ASCII text editor that should be sufficient  for 
  20. most applications under  DOS. Some of  the command set  is similar to  that 
  21. found in  other editors,  with some  cute little  extensions tucked away in 
  22. Note to handle all the possible functions that might crop up. 
  23.  
  24.     If you can program in Pascal,  you can really make this into  an editor 
  25. to suit your own tastes, since the Turbo Pascal source code is included. 
  26.  
  27.     Requirements:  IBM PC or Compatible 
  28.                    DOS 2.1+ 
  29.                    256K RAM or the more the better. 
  30.                    Mono or Color Adapter 
  31.                    Turbo Pascal 4.0 or newer. 
  32.  
  33.     Limitations:   Maximum line  length - 128 characters. 
  34.                    Maximum lines edited - 2730 lines. 
  35.  
  36.  
  37.  
  38.  
  39.                             Table of Contents 
  40.  
  41.                      Getting Started................ 
  42.                      Display........................ 
  43.                      Changing the Status............ 
  44.                      Typing......................... 
  45.                      Moving the Window.............. 
  46.                      Traveling...................... 
  47.                      Deletions...................... 
  48.                      Inserting an ASCII Code........ 
  49.                      Quitting....................... 
  50.                      Color Change................... 
  51.                      Spelling....................... 
  52.                      Acknowledgements............... 
  53.                      Key Chart...................... 
  54.                      License........................ 
  55.                      Warranty....................... 
  56.                      Registration................... 
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                     HOW TO USE THIS EDITOR 
  64.  
  65. GETTING STARTED 
  66.  
  67.     From the operating system  type NOTE [D:][Path]FILE.EXT<CR> where  FILE 
  68. is the name of the file you  wish to edit (up to eight characters)  and EXT 
  69. is the extension. If no file name is given on the command line, the program 
  70. will  query  you  for  a  file  name.  The  drive designation, D:, and path 
  71. designation are optional; if they are omitted, the program will search  the 
  72. currently  logged  drive  and  directory.  The  file  name  including  path 
  73. specification can have up to 24 characters. 
  74.  
  75.     If a file is found with the name you have given, the program will  load 
  76. it, and present a screen for editing.  If no file with this name is  found, 
  77. the program will  ask you if  this is a  new file. If  you really intend to 
  78. create a new file, press "Y", and the program will present you with a blank 
  79. screen ready to enter text. On the other hand, you may have misspelled  the 
  80. name of the file or made some other mistake that prevented the program from 
  81. finding your file; if so, press "N" and the program will dump you back into 
  82. the operating system so that you can try again. 
  83.  
  84.     The maximum file size that can be loaded depends on the amount of  free 
  85. memory you have in your machine. NOTE allocates space for 128 characters to 
  86. each line of text; if your text  has a lot of white space and  blank lines, 
  87. it will be loaded inefficiently. As  a rule of thumb, you will  need memory 
  88. equal to 3 times the length of the file; thus, to edit a 100K file you will 
  89. need 300K of free memory. The maximum number of lines that can be edited is 
  90. 2730. If you try to load a file that is too long for the available  memory, 
  91. the program  will write  "insufficient memory"  and dump  you back into the 
  92. operating system. If you try to edit a file whose lines are longer than 128 
  93. characters, the program will write "file too fat for this editor" and  dump 
  94. you back to the operating system. This is usually what happens when you try 
  95. to edit a non ASCII file. 
  96.  
  97. DISPLAY 
  98.  
  99.     The status line at the top of the screen shows the following: the  line 
  100. and the  column numbers,  updated after  every keystroke,  the editing mode 
  101. which  is  either  "insert"  or  "overwrite",  the word wrap status, either 
  102. "wordwrap" or "nowrap", and the name  of the file you are editing.  Finally 
  103. there is a space  on the extreme right  which can contain an  asterisk. The 
  104. asterisk will appear as soon as you have changed something in the file. 
  105.  
  106.     The second line of the screen is the ruler line, which shows the  width 
  107. of the text. If the editor is in the "wordwrap" mode, this line shows  left 
  108. and  right  margins  indicated  by  markers.  When  text  is entered in the 
  109. wordwrap mode it  will be aligned  between these two  markers. This program 
  110. turns on  with the  left margin  set at  column 1  and the  right margin at 
  111. column 76. 
  112.  
  113.     Some explanations: in the "insert"  mode, any letter typed is  inserted 
  114. into the line at the cursor position and the rest of the line is pushed  to 
  115. the right. In  the "overwrite" mode,  any letter typed  replaces the letter 
  116. over the cursor and the rest  of the line is unchanged. In  "wordwrap" mode 
  117. the program automatically moves any word that extends past the right margin 
  118. to the beginning of the next  line - sort of an automatic  carriage return. 
  119. In the  "nowrap" mode,  you have  to insert  the carriage returns yourself. 
  120. Initially, the program comes on in the "insert" and "wordwrap" modes. 
  121.  
  122.     The rest of the  screen is a window  that displays 23 lines  of text. A 
  123. maximum of 79 characters are displayed  on each line. A "<" symbol  appears 
  124. the 80th  column if  all the  characters up  to the  end of  a line  can be 
  125. displayed, If there are  more than 79 characters  in the line so  that some 
  126. characters on the right do not  appear on the screen, a "+"  symbol appears 
  127. in the 80th column. If there is  no symbol in the 80th column, the  line is 
  128. empty. With wide files (lines longer  than 80 characters), the text may  be 
  129. shifted so that the beginning of the  lines do not show on the screen.  The 
  130. ruler line shows you what part of the text you are looking at. 
  131.  
  132. CHANGING THE STATUS 
  133.  
  134.     To toggle between  "insert" and "overwrite"  press the "Ins"  key. Note 
  135. the change  in the  status line  as this  key is  pressed. To  change other 
  136. status parameters, type ^P ("Cntl" and "P" simultaneously) for  "ParaForm". 
  137. You will be asked "wordwrap?". Press either "Y" or "N". Pressing "N"  turns 
  138. off the margin markers and sets the left margin to 1. If you press "Y"  you 
  139. will queried for the left and right margins. The left margin may not exceed 
  140. 80 and the right margin must be at least 24 spaces margins at their current 
  141. settings. 
  142.  
  143. TYPING 
  144.  
  145.     When entering text, the normal position of the cursor is one space past 
  146. the end of  the current line.  A carriage return,  <CR>, will create  a new 
  147. line and move  the cursor to  the beginning of  this line; a  <CR> with the 
  148. cursor in the middle of a line of text will create a new line and move  all 
  149. the text to the right of the  cursor to the new line. A backarrow  (delete) 
  150. with the cursor in the first column will delete the current line and  stack 
  151. all text to the right of the cursor on top of the previous line. A ^N (hold 
  152. down the "N" key and  the control key at the  same time) will create a  new 
  153. blank line above the current line. 
  154.  
  155. MOVING THE WINDOW 
  156.  
  157.     The screen can be thought of as a window viewing a portion of the text. 
  158. To push the window down by one  line push ^Z (press control and "z"  at the 
  159. same time). To push it up by one line press ^W. To push the viewing  window 
  160. down 22  lines in  the text,  press the  "Pg Dn"  key. To  push it up by 22 
  161. lines, press the  "Pg Up" key.  To move the  cursor all the  way to to  the 
  162. bottom of the  file, press the  control and "Pg  Dn" key at  the same time. 
  163. Control and "Pg Up" moves the cursor to the top of the file. 
  164.  
  165. TRAVELING 
  166.  
  167.     To move the cursor, use the cursor  arrow keys. If you try to move  the 
  168. cursor off the screen, the window  will shift up, down or sideways  so that 
  169. the cursor remains visible. 
  170.  
  171.     The left and right arrow keys will not move the cursor off the  current 
  172. line. If the right arrow key takes  the cursor past the end of the  current 
  173. line,  entering  any  character  will  fill  in  the intervening space with 
  174. blanks. Holding down the left arrow  key moves the cursor to the  beginning 
  175. of the current line where it stops. The up and down keys will not take  the 
  176. cursor into a region where there is no text. 
  177.  
  178.     The "Home" key moves the cursor to the left margin on the current line. 
  179. The "End"  key moves  the cursor  to the  end of  the current  line. In the 
  180. wordwrap mode,  lines ordinarily  have a  blank space  at the  end so  that 
  181. pressing "End" positions the cursor properly to add more words to the line. 
  182.  
  183. DELETIONS 
  184.  
  185.     The Del key  deletes the character  over the cursor.  The backarrow key 
  186. deletes  the  character  to  the  left  of  the cursor. To delete an entire 
  187. paragraph, move the cursor  to the end of  the paragraph and hold  down the 
  188. back arrow key. The paragraph will be gobbled up as you watch. 
  189.  
  190. INSERT AN ASCII CODE 
  191.  
  192.     Some characters, such as graphics  symbols and Greek letters cannot  be 
  193. typed from the keyboard; other characters with a decimal order less than 32 
  194. will be interpreted as commands if typed. Any character, from 0 to 255  can 
  195. be inserted into the text by the sequence <alt>A nnn <CR> where nnn is  the 
  196. ASCII number (decimal) of the character. 
  197.  
  198.     This feature may be used to  write printer codes at the beginning  of a 
  199. file so as to select the type  font and the line spacing that you  want the 
  200. printer to use when you copy your file to the printer. Be sure to insert  a 
  201. printer code at the end of the file to restore the printer to its  original 
  202. settings. 
  203.  
  204.     Another application  of this  feature is  to print  individual words or 
  205. phrases in underlined, boldface or  italic type font. Consult your  printer 
  206. manual for the proper sequences to change into and out of these modes. 
  207.  
  208. To make the printer start a new page, type ASCII code 12. 
  209.  
  210. QUITTING 
  211.  
  212.     To quit the editor, type ^K  (press control and "k" at the  same time). 
  213. If you have only been reading the  file and the file has not been  changed, 
  214. the program exits to the system immediately. If the file has been  changed, 
  215. the program will ask  you if you wish  to save your changes.  If you answer 
  216. "Y" the program writes "as: ".  Here, you have two choices. Enter  <CR> and 
  217. you will overwrite the old  file on the disk. If  you wish to save the  old 
  218. file as  a backup,  you must  think up  a new  name for  your altered file. 
  219. Entering this new name will cause your altered text to be written as a  new 
  220. file, leaving your old file on the disk unchanged. 
  221.  
  222.     This program  does not  make a  backup copy  of the  file that  you are 
  223. editing when starting,  but since it  works with the  contents of the  file 
  224. entirely in machine memory and  the source file closed, your  original file 
  225. will not be  lost if the  the power fails,  or you hang  up the machine and 
  226. have to reboot while editing. However,  when writing long files it is  good 
  227. practice to quit and reload from time to time so as to save your changes. 
  228.  
  229.  
  230.  
  231. Final notes: 
  232.  
  233. COLOR CHANGE 
  234.  
  235.     Users who are dissatisfied with the present color scheme may experiment 
  236. by typing  <alt> F  to change  the text  color and  <alt> B  to change  the 
  237. background. There  are 16  possible text  colors and  8 possible background 
  238. colors, giving  128 possible  color combinations  - 8  of them,  of course, 
  239. totally invisible e.g. blue on blue. 
  240.  
  241.     The first  line of  the screen,  the status  line, uses  a rather gaudy 
  242. color scheme in order to provide a cue as to when you are in the edit mode; 
  243. the gaudy colors  disappear when you  are answering questions  and reappear 
  244. when you get back  into the edit mode.  If you prefer more  subdued colors, 
  245. type ^D to  make the status  line use the  same colors as  the rest of  the 
  246. screen. 
  247.  
  248. SPELLING 
  249.  
  250.     This  program  can  be  used  in  conjunction  with  the  Borland Turbo 
  251. Lightning spelling checker  program, since it  has no keystrokes  in common 
  252. with that program. 
  253.  
  254. ACKNOWLEDGEMENTS 
  255.  
  256.     This program  is written  entirely in  Turbo Pascal,  and uses a direct 
  257. write to screen  memory for fast  screen update. It  runs satisfactorily on 
  258. several makes of computer, and has been tested on both color and monochrome 
  259. video adapters.  The fast  video routins  were taken  from FASTWR21.INC  by 
  260. Brian Foley, with some minor modifications to account for incompatibilities 
  261. with  Turbo  Pascal  4.0  and  Hercules  Mono Graphics video adapters. This 
  262. allows for more reliable video  performance and makes the video  operations 
  263. of the program  smoother and more  professional in appearence.  The program 
  264. operation should also  be free from  snow on most  CGA, EGA and  monochrome 
  265. machines. Some CGA monitors may  normally produce snow, so steps  have been 
  266. taken to prevent the production of snow on said monitors. 
  267.  
  268.  
  269.  
  270.      The following table is both a list of features and a reference sheet for 
  271.      the keys to press to use those features. 
  272.  
  273.      KEYS                  FEATURES 
  274.      ===== ================================================================== 
  275.      Alt-B defines the beginning/end of a block of lines. See Alt-E/P/U. 
  276.      Alt-C clears all lines, ie: wipes the slate clean. 
  277.      Alt-D deletes the line at the cursor position. 
  278.      Alt-E erases a block of lines. See Alt-B/P/U 
  279.      Alt-F finds specified text. Automatically wraps around the end of the 
  280.            file. If matching text is found, it is displayed highlighted. 
  281.      Alt-G get the next section. 
  282.      Alt-I toggles auto-indent, ie: next line starts at the same cursor 
  283.            position as the preceeding line. Can be overridden with cursor keys. 
  284.      Alt-K automatically caps the first letter of each word. Good for names 
  285.            and addresses. 
  286.      Alt-M set the right margin. 
  287.      Alt-N to load a new file without saving current file. 
  288.      Alt-P pastes (copies) a block of lines. See Alt-B/E/U. 
  289.      Alt-R reforms paragraph from the current line down.  End of Paragraph is 
  290.            when the next line starts with at least 3 blanks unless auto-indent 
  291.            is on, then End of Paragraph is when the next line does not have 
  292.            the same margin as the preceeding line. 
  293.      Alt-U unmarks a block of lines. See Alt-B/E/P. 
  294.      Alt-W toggles word-wrap on/off. 
  295.      Alt-X save and exit. 
  296.      Esc   exit without saving. 
  297.      ^-End deletes from the cursor to the end of the line. 
  298.      Ins   toggles Insert mode. 
  299.      ENTER pressed in the Insert mode splits a line at the cursor position. 
  300.      Del   at end of text joins two lines. 
  301.      Cursor movement keys: 
  302.          Up, Down, Left, Right. 
  303.          Home, End - Move to start or end of text. 
  304.             Press again - Move to start or end of line. 
  305.          Ctrl-Left Ctrl-Right - move cursor 1 word left or right. 
  306.  
  307.      Upper-ASCII characters can be entered by holding down the Alt key and 
  308.      entering the ASCII code on the number pad. 
  309.  
  310.  
  311.                              LIMITED LICENSE 
  312.  
  313.     This software and associated files are being marketed as shareware. 
  314.  
  315.     That means the files are copyrighted, but may be used for an evaluation 
  316. period of up to thirty days. If after evaluating the program you do  decide 
  317. to use it, the license fee is $25, payable to Steve Edwards. 
  318.  
  319.     Payment  by  individuals  is   optional.  Payment  by  businesses   and 
  320. government offices, etc, is NOT  optional. Individuals may also make  a few 
  321. copies for friends to try  so long as such copying  is not done as part  of 
  322. nor adjunct to any group, association or business. 
  323.  
  324.     Any other  use or  distribution must  be specifically  licensed by  the 
  325. author.  Unlicensed  use  or  distribution  of  copyrighted  materials is a 
  326. violation  of  Federal  law  and  may  be  subject  to  civil  and criminal 
  327. prosecution and substantial fines. 
  328.  
  329. NOTE: This limited license does not apply to the source code. Read the 
  330. source code file for more information. 
  331.  
  332.  
  333.                                     WARRANTY 
  334.  
  335.     The author is not responsible for any damages resulting from the use of 
  336. this program, including  the loss of  time or income.  Good data processing 
  337. procedures dictate that  any new software  be tested by  the the user  with 
  338. non-critical data. If you  do not agree to  this warranty, do not  use this 
  339. program. 
  340.  
  341.     - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
  342.  
  343.  
  344.                              Software Registration 
  345.  
  346.      Date: __________ 
  347.  
  348.      Name: _________________________________  Phone: _______________________ 
  349.  
  350.      Address: ______________________________________________________________ 
  351.  
  352.      _______________________________________________________________________ 
  353.  
  354.  
  355.      Please send me the latest version of Note... 
  356.  
  357.      Registration fee for a single-user license for Note ........   $   25 
  358.  
  359.          TOTAL ..................................................   ______ 
  360.                                                                     ______ 
  361.  
  362.  
  363.  
  364.      Mail to:                     Steve Edwards 
  365.                                2516 North 72nd St 
  366.                               Kansas City, KS 66109 
  367.                                      or call 
  368.                                   913-299-1678 
  369.  
  370.  
  371.      Please call or write for multi-user licenses or to license the source 
  372.      code for commercial use. 
  373.  
  374.  
  375.